package com.richper.springcloudh2020.service.impl;

import com.richper.springcloudh2020.entities.Payment;
import com.richper.springcloudh2020.mapper.PaymentMapper;
import com.richper.springcloudh2020.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;
    @Override
    public int insertPayMent(Payment payment) {
        return paymentMapper.insertPayMent(payment);
    }

    @Override
    public Payment queryPayMentByID(Long ID) {
        return paymentMapper.queryPayMentByID(ID);
    }
}
